﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpWeb
{
    /// <summary>
    /// 自定义内容组件
    /// </summary>
    public class CustomContentTagComponent:TagComponent
    {
        private string _Content;
        /// <summary>
        /// 获取或设置组件的内容
        /// </summary>
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }
        
        protected override string OnRender(ComponentContext context)
        {
            return this.Content;
        }
    }
}
